package com.heima.apis.user;

import com.heima.model.admin.dtos.AdminUserDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRelatinDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user")
public interface IUserClient {
    @PostMapping("/api/v1/u/user_follow")
    public ResponseResult followhandle(@RequestBody UserRelatinDto userRelatinDto);


    @PostMapping("/api/v1/auth/appList")
    public ResponseResult findList(@RequestBody AdminUserDto dto);

    @PostMapping("/api/v1/auth/authFail")
    public ResponseResult fail(@RequestBody AdminUserDto dto);

    @PostMapping("/api/v1/auth/authPass")
    public ResponseResult success(@RequestBody AdminUserDto dto);

    @PostMapping("/api/v1/auth/findUserById/{id}")
    public ResponseResult findUserById(@PathVariable("id") Long userId);


}